<%@ page import="java.util.ArrayList" %>
<%@ page import="Student.Stu" %><%--
  Created by IntelliJ IDEA.
  User: Admin
  Date: 2020/9/6
  Time: 20:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>查看学生</title>
</head>
<body>
<table width="600px" border="1px">
    <tr>
        <th>学生姓名</th>
        <th>学生年龄</th>
        <th>学生成绩</th>
    </tr>
    <% ArrayList<Stu> stus = (ArrayList<Stu>) session.getAttribute("Students");
        for (Stu stu : stus) {%>
    <tr align="center">
        <td><%=stu.getName() %></td>
        <td><%=stu.getAge() %></td>
        <td><%=stu.getscore() %></td>
    </tr>
    <%}%>
</table>

</body>
</html>
